<?php
if(!defined("ADMREAD")) exit();
global $sess,$lang,$ADMIN_PERM_ARRAY,$ADMIN_ID,$CHECK_ADMIN;
$block = array();
if(in_array('comment',$ADMIN_PERM_ARRAY) || in_array($ADMIN_ID,$CHECK_ADMIN['admid'])){
    $block['id'] = 'comment';
    $block['title'] = $lang['menu_comment'];
    $block['link'] = array('comment.php?dn=index&ops='.$sess['hash'] => $lang['all_set'],
    'comment.php?dn=smilie&ops='.$sess['hash'] => $lang['comment_smilie']);
    if ($conf['control'] == 'yes') {
        $block['links'] = array('comment.php?dn=control&ops='.$sess['hash'] => $lang['control_word']);
        $block['link'] = @array_merge($block['link'],$block['links']);
    }
}
?>